package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.MidOrdersMapper;
import com.ruoyi.order.domain.MidOrders;
import com.ruoyi.order.service.IMidOrdersService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class MidOrdersServiceImpl implements IMidOrdersService 
{
    @Autowired
    private MidOrdersMapper midOrdersMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public MidOrders selectMidOrdersById(Long id)
    {
        return midOrdersMapper.selectMidOrdersById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param midOrders 订单
     * @return 订单
     */
    @Override
    public List<MidOrders> selectMidOrdersList(MidOrders midOrders)
    {
        return midOrdersMapper.selectMidOrdersList(midOrders);
    }

    /**
     * 新增订单
     * 
     * @param midOrders 订单
     * @return 结果
     */
    @Override
    public int insertMidOrders(MidOrders midOrders)
    {
        return midOrdersMapper.insertMidOrders(midOrders);
    }

    /**
     * 修改订单
     * 
     * @param midOrders 订单
     * @return 结果
     */
    @Override
    public int updateMidOrders(MidOrders midOrders)
    {
        return midOrdersMapper.updateMidOrders(midOrders);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteMidOrdersByIds(Long[] ids)
    {
        return midOrdersMapper.deleteMidOrdersByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteMidOrdersById(Long id)
    {
        return midOrdersMapper.deleteMidOrdersById(id);
    }
}
